package com.hzw.saas.web.app.access.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 移动端需求，第三方跳转H-BOX
 * @author sonam
 * @sine 2021/11/23 2:35 下午
 */
@ApiIgnore
@RestController
public class AppleController {

    @GetMapping("/apple-app-site-association")
    public ResponseEntity<String> getAppleAppSiteAssociation() {
        return ResponseEntity.ok("{\n" +
            "    \"applinks\": {\n" +
            "        \"apps\": [],\n" +
            "        \"details\": [\n" +
            "            {\n" +
            "                \"appID\": \"CRA5QJDYP9.com.hzwtech.hbox\",\n" +
            "                \"paths\": [\n" +
            "                    \"/app/*\"\n" +
            "                ]\n" +
            "            }\n" +
            "        ]\n" +
            "    }\n" +
            "}\n");
    }

}
